package com.hu.zhcc.shiro.controller.xsx;


import com.hu.zhcc.shiro.entity.xsx.XsxTHealthmgr;
import com.hu.zhcc.shiro.service.xsx.THealthmgrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 健康管理师 前端控制器
 * </p>
 *
 * @author xsx
 * @since 2021-06-19
 */
@RestController
@RequestMapping("/tHealthmgr")
public class THealthmgrController {
    @Autowired
    THealthmgrService tHealthmgrService;

    @GetMapping("/all")
    private List<XsxTHealthmgr> queryAll(){
        return tHealthmgrService.queryAllJks();
    }

    @PostMapping("/{id}")
    private int getHealthMgrId(@PathVariable("id") Integer id){
        return tHealthmgrService.getHealthMgrId(id);
    }

}

